package com.atguigu.classes;

/**
 * @program: IDEAcode
 * @description:
 * @author: Mr.zjx
 * create: 2021-07-24-20-51
 **/
public class Test06 {
    public static void main(String[] args) {
        arrayCopy();
    }
    public static void arrayCopy(){
        int[] src = {1,2,3,4,5,6};
        int[] dest = {7,8,9,12,13};
        System.arraycopy(src,2,dest,1,3);//7,3,4,5,13
        for (int i = 0; i < dest.length; i++) {
            System.out.println(dest[i]);
        }
    }
}
